package Box2D.Dynamics
{
	import Box2D.Common.b2Wrapper;
	
	public class b2QueryCallback extends b2Wrapper
	{
		private var _callback:Function;
		public function b2QueryCallback(callback:Function=null)
		{
			super(callDirect('b2QueryCallback_new',this));
			_callback = callback;
		}
		public virtual function ReportFixture(fixture:b2Fixture):Boolean{
			if(_callback!=null)
				return _callback(fixture);
			else
				return true;
		}
	}
}